<?php
if(isset($html_warnings) && is_array($html_warnings)){
  foreach($html_warnings as $warn){
      $messageStack->add('header', $warn, 'warning');
  }

  unset($html_warnings);
}

